﻿@using Test.Modules.Accounts.ClientBilling.Models

@model AccountModuleListViewModel

@section TitleContent {
	Manage
}

				<div class="contentRegion">
					<div class="contentRegionFull">
						<div class="contentRegionHeader">Manage Modules</div>
						<div class="contentRegionContainer">
							<form action="@Url.Action("Manage")" method="post">
							@{	foreach (var module in Model) {
									<p>
										@Html.CheckBox(module.Key.ToString(), module.Enabled, module.Optional ? null : new { disabled = "disabled" })
										<label for="@module.Key">@string.Format("{0}{1}", module.Name, module.Optional ? " (Optional)" : string.Empty)</label>
									</p>
								}
								<div style="text-align:right;">
									<input type="submit" name="manageSubmit" value="Save" />
								</div>
							}
							</form>
						</div>
					</div>
				</div>
